package reflect_ex_1;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class ReflectDemo3 {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
        Class cls = Class.forName("reflect.Person");
        cls.getConstructor();

        //Constructor c = cls.getConstructor(String.class,int.class);
        ///Object o = c.newInstance("沧桑",32);
        ///System.out.println(o);


    }
}
